package com.hopes.bizz.close.gis.vo.hazard;

import lombok.Data;

import java.io.Serializable;

/**
 * @author yumr
 * @ProjectName bizz
 * @Description 车辆预约类型统计
 * @time 2024/2/26 19:42
 */
@Data
public class ApplyCarTypeChartVO implements Serializable {

    private static final long serialVersionUID = -6147681253298509635L;

    /**
     * 下班
     */
    private String index;

    /**
     * 企业车辆
     */
    private Integer companyCarNum;

    /**
     * 非企业车辆
     */
    private Integer notCompanyCarNum;


    public ApplyCarTypeChartVO(String index, Integer companyCarNum, Integer notCompanyCarNum) {
        this.companyCarNum = companyCarNum;
        this.notCompanyCarNum = notCompanyCarNum;
        this.index = index.length() == 13 ? index + ":00" : index;
    }

}
